<!DOCTYPE html>
<html>
<head>
  <title>WebGL Page</title>
  <meta charset="utf-8">
</head>
<body>
  <script>
    console.log("html 页面加载完成");
	window.test = function()
	{
		console.log("html","++++++++++++++++");
	};
    // 监听来自插件的消息
    window.addEventListener('message', function(event) {
	 console.log("html");
        if (event.data.message) {
            console.log("html",'Message from extension:', event.data.message);
            // 在这里执行相应的操作
        }
    });
  </script>
</body>
</html>